package springcore;

import java.io.File;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.core.io.ClassPathResource;


public class IOC {

	public static void main(String[] args) {
		String pathName="beans.xml";
		BeanFactory bf;
		DefaultListableBeanFactory xbf =new DefaultListableBeanFactory();
		ClassPathResource cpr=new ClassPathResource(pathName);
		XmlBeanDefinitionReader xbdfr=new XmlBeanDefinitionReader(xbf);
		xbdfr.loadBeanDefinitions(cpr);
	}

}
